<?php 
$Content = QContext::instance();
$base_url = $Content->requestUDI();
$search = $base_url;
$search['action'] = 'search';
$delete = $base_url;
$delete['action'] = 'del';
$add = $base_url;
$add['action'] = 'add';
$import = $base_url;
$import['action'] = 'import';
$output = $base_url;
$output['action'] = 'output';
$change = $base_url;
$change['action'] = 'change';
?>
<div class="pageContent">
	<form method="post" action="<?php echo url($change,null,null,array('mode'=>'standard'));?>" class="pageForm" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="68">
			<!--  <div class="unit">
				<label>余额替换：</label>
				<input type="text" size="32" name="balance" />
			</div>
		-->
			
			<div class="unit">
				<label>过期日期：</label>
				<input type="text" name="expireddate" class="date" />
			</div>
			<div class="unit">
				<label>通话限制：</label>
				<input type="text" size="12" class="number" name="talk_timelong"/>
			</div>
			<div class="unit">
				<label>回铃限制 ：</label>
				<input type="text" size="12" class="number" name="limitbalance"/>
			</div>
			<div class="unit">
				<label>主叫：</label>
				<input type="text" size="12"  name="callerid"/>
			</div>
			<?php if($_SESSION['acct']['batuserbalance'] == 0 ):?>
			<div class="unit">
				<label>修改余额：</label>
			<select style="width:120px" name="balanceflag" size="1">
			<option value="-1">不修改</option>
			<option value="1">修改</option>
			</select>
			</div>
			<div class="unit">
				<label>余额累加(正负)：</label>
				<input type="text" size="32" name="append_balance" />
			</div>
			<?php endif;?>
			<div class="unit">
				<label>呼出费率组：</label>
				<select style="width:120px" name="rategroupid" size="1">
							<option value="-1">不修改</option>
             				<?php foreach ($rategroupid as $k=>$v):?>
             				<option value="<?php echo $k?>"><?php echo $v;?></option>
             				<?php endforeach;?>
                            </select>
			</div><div class="unit">
				<label>回铃费率组：</label>
				<select style="width:120px" name="rategroupid_acall" size="1">
							<option value="-1">不修改</option>
             				<?php foreach ($rategroupid_acall as $k=>$v):?>
             				<option value="<?php echo $k?>"><?php echo $v;?></option>
             				<?php endforeach;?>
                            </select>
			</div>
			<div class="unit">
				<label>用户状态：</label>
				<select style="width:120px" name="enable" size="1">
							<option value="-1">不修改</option>
             				<option value="1">正常</option>
             				<option value="0">禁用</option>
                            </select>
			</div>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">批量修改</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="reset">清空重输</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
